package cn.com.computer.my.book.web.bean;

import java.io.Serializable;

/**
 * Created by WANGXin on 2017/5/21.
 */
public class OriginalRaidersBookBean implements Serializable{
    /**
     * 游戏名称
     */
    private String gameName;
    /**
     * 游戏平台
     */
    private String gamePlatForm;
    /**
     * 游戏攻略出处
     */
    private String bookFrom;
    /**
     * 游戏攻略出处版本
     */
    private String bookVersion;
    /**
     * 游戏攻略大小
     */
    private String bookCapacity;
    /**
     * 游戏攻略保存目录
     */
    private String bookPath;

    public String getGameName() {
        return gameName;
    }

    public void setGameName(String gameName) {
        this.gameName = gameName;
    }

    public String getGamePlatForm() {
        return gamePlatForm;
    }

    public void setGamePlatForm(String gamePlatForm) {
        this.gamePlatForm = gamePlatForm;
    }

    public String getBookFrom() {
        return bookFrom;
    }

    public void setBookFrom(String bookFrom) {
        this.bookFrom = bookFrom;
    }

    public String getBookVersion() {
        return bookVersion;
    }

    public void setBookVersion(String bookVersion) {
        this.bookVersion = bookVersion;
    }

    public String getBookCapacity() {
        return bookCapacity;
    }

    public void setBookCapacity(String bookCapacity) {
        this.bookCapacity = bookCapacity;
    }

    public String getBookPath() {
        return bookPath;
    }

    public void setBookPath(String bookPath) {
        this.bookPath = bookPath;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        OriginalRaidersBookBean that = (OriginalRaidersBookBean) o;

        if (gameName != null ? !gameName.equals(that.gameName) : that.gameName != null) return false;
        if (gamePlatForm != null ? !gamePlatForm.equals(that.gamePlatForm) : that.gamePlatForm != null) return false;
        if (bookFrom != null ? !bookFrom.equals(that.bookFrom) : that.bookFrom != null) return false;
        if (bookVersion != null ? !bookVersion.equals(that.bookVersion) : that.bookVersion != null) return false;
        if (bookCapacity != null ? !bookCapacity.equals(that.bookCapacity) : that.bookCapacity != null) return false;
        return bookPath != null ? bookPath.equals(that.bookPath) : that.bookPath == null;
    }

    @Override
    public int hashCode() {
        int result = gameName != null ? gameName.hashCode() : 0;
        result = 31 * result + (gamePlatForm != null ? gamePlatForm.hashCode() : 0);
        result = 31 * result + (bookFrom != null ? bookFrom.hashCode() : 0);
        result = 31 * result + (bookVersion != null ? bookVersion.hashCode() : 0);
        result = 31 * result + (bookCapacity != null ? bookCapacity.hashCode() : 0);
        result = 31 * result + (bookPath != null ? bookPath.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "OriginalRaidersBookBean{" +
                "gameName='" + gameName + '\'' +
                ", gamePlatForm='" + gamePlatForm + '\'' +
                ", bookFrom='" + bookFrom + '\'' +
                ", bookVersion='" + bookVersion + '\'' +
                ", bookCapacity='" + bookCapacity + '\'' +
                ", bookPath='" + bookPath + '\'' +
                '}';
    }
}
